﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BSC;
using EmrDatastructure;

namespace MvcEmrRazor.Controllers
{
    [Authorize]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            //ViewBag.Message = "Welcome to ASP.NET MVC!";
            //IIdentity i = User.Identity;
            //IPrincipal p;
            return View();
        }
        [HttpPost]
        public ActionResult Index(EmrDemographicSearch r)
        {
            System.Web.HttpContext.Current.Session["Search"] = r;
            return RedirectToAction("Index", "Demographics");
        }
        public ActionResult About()
        {
            return View();
        }
    }
}
